package constant

// 保持前缀一致且有序！

// 通用返回
const (
	STATUS_SUCCESS           = "STATUS_SUCCESS"
	STATUS_FAILURE           = "STATUS_FAILURE"
	REASON_EMPTY             = "REASON_EMPTY"
	REASON_UNKNOWN           = "REASON_UNKNOWN"
	REASON_PARAMETER_MISSING = "REASON_PARAMETER_MISSING"
	REASON_NETWORK_UNSTABLE  = "REASON_NETWORK_UNSTABLE"
)

// /User 用户验证
const (
	USER_AUTH_FAIL     = "USER_AUTH_FAIL"
	USER_INVALID       = "USER_INVALID"
	USER_NOT_FOUND     = "USER_NOT_FOUND"
	SIGNATURE_TOO_LONG = "SIGNATURE_TOO_LONG"
)

// city model
const (
	REGION_NOT_FOUND = "REGION_NOT_FOUND"
)

const (
	NAME_TOO_LONG          = "NAME_TOO_LONG"
	PASSWORD_ERROR         = "PASSWORD_ERROR"
	REGISTER_FAIL          = "REGISTER_FAIL"
	NO_USER                = "NO_USER"
	LOGIN_FAIL             = "LOGIN_FAIL"
	LOGOUT_SUCCESS         = "LOGOUT_SUCCESS"
	LOGOUT_FAIL            = "LOGOUT_FAIL"
	PASSWORD_TOO_LONG      = "PASSWORD_TOO_LONG"
	MOBILE_BEEN_REGISTERED = "MOBILE_BEEN_REGISTERED"
	NAME_BEEN_REGISTERED   = "NAME_BEEN_REGISTERED"
	CAPTCHA_GENERATE_FAIL  = "CAPTCHA_GENERATE_FAIL"
	OUT_OF_DATE            = "OUT_OF_DATE"
	CAPTCHA_TEST_SUCCESS   = "CAPTCHA_TEST_SUCCESS"
	CAPTCHA_TEST_FAIL      = "CAPTCHA_TEST_FAIL"
	PRODUCT_ADD_FAIL       = "PRODUCT_ADD_FAIL"
	PRODUCT_REMOVE_FAIL    = "PRODUCT_REMOVE_FAIL"
	PRODUCT_NOT_FOUND      = "PRODUCT_NOT_FOUND"
	NAME_TOO_SHORT         = "NAME_TOO_SHORT"
	PASSWORD_TOO_SHORT     = "PASSWORD_TOO_SHORT"
	MOBILE_FORMAT_ERROR    = "MOBILE_FORMAT_ERROR"
	SEND_TOO_OFTEN         = "SEND_TOO_OFTEN"
	STATUS_OK              = "STATUS_OK"
)
